#include <REGX52.H>
#include <INTRINS.H>
void Delay500ms()		//@12.000MHz
{
	unsigned char i, j;
	int ms;
	ms=10;
for(ms;ms>0;ms--){
	i = 12;
	j = 169;
	do
	{
		while (--j);
	} while (--i);
}
}
void main(){
	while(1){
	P2=0xfe;
	Delay500ms();
	P2=0xfd;
	Delay500ms();
	P2=0xfb;
	Delay500ms();
	P2=0xf7;
	Delay500ms();
	P2=0xef;
	Delay500ms();
	P2=0xdf;
	Delay500ms();
	P2=0xbf;
	Delay500ms();
	P2=0x7f;
	Delay500ms();
	}
}